class TypeUtils {
  static isString(obj) {
    return Object.prototype.toString.call(obj) === '[object String]'
  }

  static isObject(obj) {
    return Object.prototype.toString.call(obj) === '[object Object]'
  }

  static isFunction = (func) => {
    const getType = {}
    return func && getType.toString.call(func) === '[object Function]'
  }

  static isUndefine(val) {
    return val === undefined
  }

  static isDefined = (val) => {
    return val !== undefined && val !== null
  }
}

export default TypeUtils
